package com.situ.hospital.service;

import com.situ.hospital.pojo.Medicine;
import com.situ.hospital.pojo.query.MedicineQuery;
import com.situ.hospital.pojo.vo.InventoryVO;
import com.situ.hospital.pojo.vo.MedicineVO;
import com.situ.hospital.util.PageResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IMedicineService {

    PageResult<MedicineVO> selectByPage(MedicineQuery medicineQuery);

    void deleteById(int id);

    void deleteAll(String[] ids);

    void add(Medicine medicine);

    Medicine selectById(int id);

    void update(Medicine medicine);

    void exportExcel(HttpServletResponse resp);

    void importExcel(HttpServletRequest req);

    List<Medicine> selectAll();

    List<InventoryVO> selectQuantity(int id);
}
